package com.wzw.springboot.principle.use.batch.simple;

import lombok.extern.slf4j.Slf4j;
import org.springframework.batch.core.JobExecution;
import org.springframework.batch.core.listener.JobExecutionListenerSupport;

/**
 * Job execution 执行时的监听启
 *
 * @author Wangzhiwen
 */
@Slf4j
public class PersonJobExecutionListener extends JobExecutionListenerSupport {

    @Override
    public void afterJob(@SuppressWarnings("NullableProblems") JobExecution jobExecution) {
        log.info("Person Job Execution After");
    }

    @Override
    public void beforeJob(@SuppressWarnings("NullableProblems") JobExecution jobExecution) {
        log.info("Person Job Execution After");
    }
}
